﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebApp.Entities
{
    [Table("meter_record")]
    public class MeterRecord
    {
        public long Id { get; set; }
        [Required]
        public decimal ActivePower { get; internal set; }
        public DateTime TakeTime { get; internal set; }
        [Required]
        [MaxLength(12)]
        public string CollectorCode { get; internal set; }
        [Required]
        [MaxLength(12)]
        public string MeterCode { get; internal set; }
        [Required]
        public int AppId { get; internal set; }
    }
}